package de.fhwf.mixedreality.agent;



import de.fhwf.mixedreality.client.AgentView;
import de.fhwf.mixedreality.client.IClient;
import de.fhwf.mixedreality.client.Vector;
import de.fhwf.mixedreality.client.IClient.Team;

public class MovingBot extends AbstractBot {
	
	

	public MovingBot(String server, ServerType type, Team team, int vtID, int rcID, String botName, String teamName, boolean simulationMode) {
		super(server, type, team, vtID, rcID, botName, teamName, simulationMode);
	}

	public void startup(IClient client) {
	}

	public boolean process(IClient client, AgentView view) {
		//if (!client.iAmLost()) {
			Vector v = client.getPositions().ball();
			if (v != null) {
				view.drawVectorFromVector(client.getPositions().me(), v);
				client.getMovements().goTo(v);
			}
		//} else {
		//	System.out.println("[MovingBot] process: Bot is lost!");
		//}
		return true;
	}

	public void terminate(IClient client) {
	}
}
